//
//  UIButton+ButtonAnimal.m
//  CNKICommunity
//
//  Created by wei on 17/2/24.
//  Copyright © 2017年 CNKI. All rights reserved.
//

#import "UIButton+ButtonAnimal.h"

@implementation UIButton (ButtonAnimal)

-(void)startLoveBttonAnimal:(NSInteger)duration
{
   
    CABasicAnimation* ba = [CABasicAnimation animationWithKeyPath:@"transform"];
    ba.autoreverses = YES;
    ba.duration = 0.3;
    ba.toValue = [NSValue valueWithCATransform3D:CATransform3DMakeScale(2, 2, 1)];
    [self.layer addAnimation:ba forKey:nil];
    
}

@end
